package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;

@Data
@Entity
@Table(name = "route_detail")
@TableName("route_detail")
public class RouteDetail {
    
    @Id
    @TableId(type = IdType.INPUT)
    @Column(name = "route_id")
    private Long id;
    
    @OneToOne
    @MapsId
    @JoinColumn(name = "route_id")
    private Route route;
    
    @Column(columnDefinition = "TEXT")
    private String introduction;
    
    @Column(columnDefinition = "TEXT")
    private String notice;
    
    @Column(columnDefinition = "TEXT")
    private String policy;

    @Column(name = "traffic_info", columnDefinition = "TEXT")
    private String trafficInfo;
    
    @Column(name = "accommodation_info", columnDefinition = "TEXT")
    private String accommodationInfo;
    
    @Column(name = "food_info", columnDefinition = "TEXT")
    private String foodInfo;
    
    @Column(name = "equipment_tips", columnDefinition = "TEXT")
    private String equipmentTips;
    
    @Column(name = "difficulty_level")
    private Integer difficultyLevel;  // 修改为Integer类型
    
    @Column(name = "physical_requirement", columnDefinition = "TEXT")
    private String physicalRequirement;
}